<template>
  <div class="zh-artcle-detail">
    <div class="zh-header-title">
      <div class="photo" :style="{'background-image': 'url(' + photo + ')'}"></div>
        <div class="describe">
          <div class="name">
            梓豪小哥哥
            <i class="iconfont icon-svip"></i>
            <i class="iconfont icon-changyongtubiao-xianxingdaochu-zhuanqu_d"></i>
          </div>
        <div class="desc">
          <span style="margin-right:10px">05-26 08:30</span>
          <span>IT科技</span>
        </div>
      </div>
      <div class="care">
        <div class="care-btn">关注 +</div>
      </div>
    </div>
    <div class="zh-artcle-content">
      <div class="zh-top-artcle">
        爆好吃的番茄茄子烩饭[馋嘴][馋嘴][馋嘴]
        <br>
        简简单单又是一碗美味佳肴，番茄茄子烩
        <br>
        食材:番茄1个、茄子1个、米饭1碗
        <br>
        <br>
        茄子烩饭的做法:
        <br>
        1.先调一个灵魂酱汁:2勺生抽+1勺蚝油+1勺老抽+1勺番茄酱+少许盐和白糖+1勺淀粉+半碗水拌匀
        <br>
        2.茄子去皮切块，裹上一层淀粉，锅内加油放入茄子煎至两面金黄捞出，锅留底油放入番茄炒出汁
        <br>
        3.加入茄子翻炒均匀，加入酱汁煮沸，放入米饭煮至浓稠完成
      </div>
      <div class="zh-img-bottom">
        <div class="zh-img-list" v-for="item in imgList" :key="item.id">
          <img :src="item.url" alt="">
        </div>
      </div>
      <div class="zh-footer-share">
        分享
      </div>
    </div>
    <div class="zh-center-recommend">
      <div class="zh-recommend-title">相关推荐</div>
      <div class="zh-recommend-box">
        <div class="left-img" :style="{'background-image': 'url(' + jcImg + ')'}"></div>
        <div class="right-content">
          <div class="top">
            爆汁鲜嫩的蒜香鸡腿
            <i class="iconfont icon-vip" v-for="item in 3" :key="item" style="margin-right:3px"></i>
            <br>
            <span>食材: 鸡翅6个, 蒜末2勺, 耗油2勺, 可乐好多瓶 ...</span>
          </div>
          <div class="bottom">
            @Julius的美味小厨房
          </div>
        </div>
      </div>
    </div>
    <div class="zh-tabs-remark">
      <Zh-Tabs></Zh-Tabs>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      photo: localStorage.getItem('txImage') || require('@/assets/image/photo.jpg'),
      jcImg: require('@/assets/image/jichi.jpg'),
      imgList: [
        { url: require('@/assets/image/1.jpg'), id: 1 },
        { url: require('@/assets/image/4.jpg'), id: 2 },
        { url: require('@/assets/image/3.jpg'), id: 3 },
        { url: require('@/assets/image/2.jpg'), id: 4 }
      ],
      active: 1
    }
  }
}
</script>

<style lang="less" scoped>
  .zh-artcle-detail {
    user-select: none;
    height: 100%;
    margin-top: 5px;
    .zh-header-title {
      display: flex;
      align-items: center;
      position: relative;
      padding: 10px 10px 0px 10px;
      background: #fff;
      .photo {
        width: 30px;
        height: 30px;
        border-radius: 100%;
        background-position: center !important;
        background-size: cover !important;
      }
      .describe {
        font-size: 10px;
        margin-left: 10px;
        .name {
          color: #e20500;
          display: flex;
          align-items: center;
          .iconfont {
            margin-left: 3px;
          }
        }
        .desc {
          color: #c9ced7;
        }
      }
      .care {
        align-self: flex-start;
        position: absolute;
        right: 10px;
        .care-btn {
          height: 20px;
          line-height: 20px;
          border-radius: 4px;
          font-size: 12px;
          color: #f4c900;
          background: #e21016;
          padding: 0px 12px;
        }
      }
    }
    .zh-artcle-content {
      padding: 10px 15px 0px 15px;
      background: #fff;
      .zh-top-artcle {
        font-size: 12px;
      }
      .zh-img-bottom {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-top: 5px;
        .zh-img-list {
          width: 49%;
          img {
            width: 100%;
            height: 180px;
          }
        }
      }
      .zh-footer-share {
        text-align: center;
        font-size: 16px;
        height: 40px;
        line-height: 40px;
      }
    }
    .zh-center-recommend {
      margin-top: 10px;
      margin-bottom: 10px;
      background: #fff;
      .zh-recommend-title {
        height: 35px;
        line-height: 35px;
        color: #5796ff;
        font-size: 15px;
        border-bottom: 1px solid #eee;
        padding-left: 10px;
      }
      .zh-recommend-box {
        padding: 10px;
        display: flex;
        align-items: center;
        .left-img {
          width: 55px;
          height: 55px;
          border-radius: 1px;
          background-position: center !important;
          background-size: cover !important;
        }
        .right-content {
          display: flex;
          height: 55px;
          flex-direction: column;
          justify-content: space-between;
          margin-left: 10px;
          .top {
            font-size: 13px;
            .iconfont {
              color: #e20500;
            }
          }
          .bottom {
            font-size: 12px;
            color: #c9ced7;
          }
        }
      }
    }
    .zh-tabs-remark {
      margin-bottom: 70px;
    }
  }
</style>
